﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Paginas_Logado/MasterPageLogado.Master" AutoEventWireup="true" CodeBehind="ClientePerfilDados.aspx.cs" Inherits="WEB_MechSysWeb.Paginas_Logado.ClientePerfilDados" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .auto-style1 {
            height: 71px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderMaster" runat="server">
    <div id="divPagina" style="height: 1240px">
        <div id="divTitulo" class="divTituloPerfilDados">
            <asp:Image ID="imgIcone" runat="server" CssClass="imgIconTitulo" Height="25px" ImageUrl="~/Imagens/icon-agenda-de-eventos.png" Width="29px" />
            Meus Dados
        </div>
        <asp:UpdatePanel ID="UpdatePanelGeral" runat="server">
            <ContentTemplate>
                <div id="divDados" class="divDadosPerfil">
                    <div class="divHeaderCad">
                        Dados pessoais
                    </div>
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate>
                            <table class="tableDadosPerfil">
                                <tr>
                                    <td class="auto-style12">
                                        <asp:Label ID="Label4" runat="server" CssClass="Labels" Text="CPF: "></asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtCPF" runat="server" Width="320px" Enabled="false"></asp:TextBox>
                                        <AjaxControlToolkit:MaskedEditExtender ID="MaskedEditExtender1" runat="server" ClearMaskOnLostFocus="False"
                                            TargetControlID="txtCPF" Mask="999\.999\.999\-99">
                                        </AjaxControlToolkit:MaskedEditExtender>
                                        <asp:CustomValidator ID="CustomValidatorCPF" runat="server" ErrorMessage="."
                                            OnServerValidate="CustomValidatorCPF_ServerValidate" ForeColor="Red" ValidationGroup="vgtxt"></asp:CustomValidator>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ErrorMessage="*Campo obrigatório!"
                                            ControlToValidate="txtCPF" ForeColor="Red" ValidationGroup="vgtxt"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="auto-style12">
                                        <asp:Label ID="Label1" runat="server" CssClass="Labels" Text="Nome*: "></asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtNome" runat="server" Width="320px"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*Campo obrigatório!"
                                            ControlToValidate="txtNome" ForeColor="Red" ValidationGroup="vgtxt"></asp:RequiredFieldValidator></td>
                                </tr>
                                <tr>
                                    <td class="auto-style12">
                                        <asp:Label ID="Label2" runat="server" CssClass="Labels" Text="Sobrenome*: "></asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtSobrenome" runat="server" Width="320px"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="*Campo obrigatório!"
                                            ControlToValidate="txtSobrenome" ForeColor="Red" ValidationGroup="vgtxt"></asp:RequiredFieldValidator></td>
                                </tr>
                                <tr>
                                    <td class="auto-style12">
                                        <asp:Label ID="Label3" runat="server" CssClass="Labels" Text="Sexo: "></asp:Label>
                                    </td>
                                    <td>
                                        <asp:RadioButtonList ID="rblSexo" runat="server" Width="170px" RepeatColumns="2"
                                            RepeatLayout="Flow">
                                            <asp:ListItem Value="F">Feminino</asp:ListItem>
                                            <asp:ListItem Value="M">Masculino</asp:ListItem>
                                        </asp:RadioButtonList>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="auto-style12">
                                        <asp:Label ID="Label6" runat="server" CssClass="Labels" Text="Data de Nascimento: "></asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtDataNascimento" runat="server" Width="320px"></asp:TextBox>
                                        <AjaxControlToolkit:MaskedEditExtender ID="mskDataNascimento" runat="server" TargetControlID="txtDataNascimento"
                                            Mask="99\/99\/9999" ClearMaskOnLostFocus="false" PromptCharacter="_">
                                        </AjaxControlToolkit:MaskedEditExtender>
                                        <AjaxControlToolkit:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtDataNascimento"
                                            Format="dd/MM/yyyy">
                                        </AjaxControlToolkit:CalendarExtender>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ErrorMessage="*Campo obrigatório!"
                                            ControlToValidate="txtDataNascimento" ForeColor="Red" ValidationGroup="vgtxt"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="auto-style12">
                                        <asp:Label ID="Label7" runat="server" CssClass="Labels" Text="Telefone*: "></asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtTelefone" runat="server" Width="320px"></asp:TextBox>
                                        <AjaxControlToolkit:MaskedEditExtender ID="MaskedEditExtender3" runat="server" ClearMaskOnLostFocus="False"
                                            Mask="\(99\)9999\-9999" TargetControlID="txtTelefone">
                                        </AjaxControlToolkit:MaskedEditExtender>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="*Campo obrigatório!"
                                            ControlToValidate="txtTelefone" ForeColor="Red" ValidationGroup="vgtxt"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="auto-style1">
                                        <asp:Label ID="Label8" runat="server" CssClass="Labels" Text="Celular: "></asp:Label>
                                    </td>
                                    <td class="auto-style1">
                                        <asp:TextBox ID="txtCelular" runat="server" Width="320px"></asp:TextBox>
                                        <AjaxControlToolkit:MaskedEditExtender ID="MaskedEditExtender4" runat="server" ClearMaskOnLostFocus="False"
                                            Mask="\(99\)9999\-9999" TargetControlID="txtCelular">
                                        </AjaxControlToolkit:MaskedEditExtender>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="auto-style12">
                                        <asp:Label ID="Label15" runat="server" CssClass="Labels" Text="Email: "></asp:Label>
                                    </td>
                                    <td>

                                        <asp:TextBox ID="txtEmail" runat="server" Width="320px" Enabled="false"></asp:TextBox>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidatorEmail" runat="server" ErrorMessage="*Email Inválido!"
                                            ControlToValidate="txtEMail" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ForeColor="Red" ValidationGroup="vgtxt">
                                        </asp:RegularExpressionValidator>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" ErrorMessage="*Campo obrigatório!"
                                            ControlToValidate="txtEmail" ForeColor="Red" ValidationGroup="vgtxt"></asp:RequiredFieldValidator>
                                    </td>
                                    <tr>
                                        <td class="auto-style12">
                                            <asp:Label ID="Label16" runat="server" CssClass="Labels" Text="Login*: "></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtLoginCad" runat="server" Width="320px" ValidationGroup="txtGroup" Enabled="false"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="*Campo obrigatório!"
                                                ControlToValidate="txtLoginCad" ForeColor="Red" ValidationGroup="vgtxt"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="auto-style12">
                                            <asp:Label ID="Label18" runat="server" CssClass="Labels" Text="Alterar Senha: "></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Button ID="btnPopUpAlterarSenha" runat="server" Text="Alterar Senha" CssClass="botoesPopUpSenha" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="auto-style12" colspan="2">
                                            <asp:Panel ID="PnAlterarSenha" runat="server" Height="260px" CssClass="panelPopUpSenha">
                                                <div class="divHeaderPopSenha">
                                                    Alterar Senha
                                                     <asp:Button ID="btnFecharPopUp" runat="server" Text="Fechar" CssClass="botaoFecharPopUpV" />
                                                </div>
                                                <asp:ChangePassword ID="AlterarSenha" runat="server" Width="601px" Height="194px" CancelButtonText="Cancelar" ChangePasswordButtonText="Alterar" MembershipProvider="AspNetSqlProvider">
                                                    <LabelStyle ForeColor="White" HorizontalAlign="Left" CssClass="labelChange" />
                                                    <CancelButtonStyle CssClass="botaoChange" />
                                                    <ChangePasswordButtonStyle CssClass="botaoChange" />
                                                    <FailureTextStyle CssClass="textFalhaChange" />
                                                    <TextBoxStyle CssClass="textChange" />
                                                    <TitleTextStyle CssClass="titleTextChange" Font-Bold="True" ForeColor="White" />
                                                </asp:ChangePassword>
                                            </asp:Panel>
                                            <AjaxControlToolkit:ModalPopupExtender
                                                runat="server"
                                                ID="PnAlterarSenha_ModalPopupExtender"
                                                Enabled="True"
                                                TargetControlID="btnPopUpAlterarSenha"
                                                PopupControlID="PnAlterarSenha"
                                                DropShadow="true"
                                                CancelControlID="btnFecharPopUp" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="auto-style12">
                                            <asp:Label ID="Label23" runat="server" CssClass="Labels" Text="Imagem do Perfil: "></asp:Label>
                                        </td>
                                        <td>
                                            <asp:FileUpload ID="FileUploadImagem" runat="server" />
                                        </td>
                                    </tr>
                            </table>
                        </ContentTemplate>
                        <Triggers>
                            <asp:AsyncPostBackTrigger ControlID="btnEditar" EventName="Click" />
                            <asp:AsyncPostBackTrigger ControlID="btnCancelar" EventName="Click" />
                        </Triggers>
                    </asp:UpdatePanel>
                    <div class="divHeaderCad">Endereço</div>
                    <asp:UpdatePanel ID="UpdatePanelEndereco" runat="server">
                        <ContentTemplate>
                            <table class="tableDadosPerfil">
                                <tr>
                                    <td class="auto-style12">
                                        <asp:Label ID="Label14" runat="server" CssClass="Labels" Text="CEP*: "></asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtCEP" runat="server" Width="320px" OnTextChanged="txtCEP_TextChanged" AutoPostBack="true"></asp:TextBox>
                                        <AjaxControlToolkit:MaskedEditExtender ID="MaskedEditExtender2" runat="server" ClearMaskOnLostFocus="False"
                                            Mask="99999\-999" TargetControlID="txtCEP">
                                        </AjaxControlToolkit:MaskedEditExtender>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator16" runat="server" ControlToValidate="txtCEP"
                                            ErrorMessage="*Campo obrigatório!" ForeColor="Red" ValidationGroup="vgtxt"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="auto-style12">
                                        <asp:Label ID="Label9" runat="server" CssClass="Labels" Text="Rua: " Font-Size="Small"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtRua" runat="server" Width="320px"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="auto-style12">
                                        <asp:Label ID="Label10" runat="server" CssClass="Labels" Text="Número: "></asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtNumero" runat="server" Width="320px"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="auto-style12">
                                        <asp:Label ID="Label11" runat="server" CssClass="Labels" Text="Complemento: "></asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtComplemento" runat="server" Width="320px"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="auto-style12">
                                        <asp:Label ID="Label27" runat="server" CssClass="Labels" Text="Bairro"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtBairro" runat="server" Width="320px"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="auto-style12">
                                        <asp:Label ID="Label12" runat="server" CssClass="Labels" Text="Cidade: "></asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtCidade" runat="server" Width="320px"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="auto-style12">
                                        <asp:Label ID="Label13" runat="server" CssClass="Labels" Text="Estado: "></asp:Label>
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlEstado" runat="server" Width="320px"></asp:DropDownList>
                                    </td>
                                </tr>
                            </table>
                        </ContentTemplate>
                        <Triggers>
                            <asp:AsyncPostBackTrigger ControlID="txtCEP" EventName="TextChanged" />
                        </Triggers>
                    </asp:UpdatePanel>
                    <br />
                    <div style="height: 37px">
                        <div id="divComplInf">
                            <asp:CheckBox ID="ckbInformacoes" runat="server" ForeColor="Black" />
                            <asp:Label ID="Label28" runat="server" Text="Desejo receber informações do site." ForeColor="Black"></asp:Label>
                        </div>
                        <br />
                        <div id="divBotoes" class="divBotoesPerfilDados">
                            <asp:Button ID="btnEditar" runat="server" CssClass="botoesPerfilDados" ForeColor="White" Text="Editar" OnClick="btnEditar_Click" />
                            <asp:Button ID="btnCancelar" runat="server" CssClass="botoesPerfilDados" ForeColor="White" Text="Cancelar" OnClick="btnCancelar_Click" />
                            <asp:Button ID="btnSalvar" runat="server" CssClass="botoesPerfilDados" ForeColor="White" Text="Salvar" OnClick="btnSalvar_Click" />
                        </div>
                    </div>
                </div>
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="btnEditar" EventName="Click" />
                <asp:AsyncPostBackTrigger ControlID="btnCancelar" EventName="Click" />
                <asp:AsyncPostBackTrigger ControlID="btnSalvar" EventName="Click" />
            </Triggers>
        </asp:UpdatePanel>
    </div>
</asp:Content>
